import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store =  new Vuex.Store({
	state: {
		isConnect: false, // 是否连接
		connectWifiInfo: {}, // 当前连接wifi信息
	},
	mutations: {
		SET_CONNECT(state,data = false) {
			state.isConnect = data
		},
		SET_CONNECT_INFO(state,data = {}) {
			state.connectWifiInfo = data
		}
	},
	action: {
		
	}
})
export default store